﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SecurityDev
{
    static class DS
    {
        public static OutpostDS outpost = new OutpostDS();

        public static OutpostDSTableAdapters.objectTableAdapter objetcAdapter = new OutpostDSTableAdapters.objectTableAdapter();        
        public static OutpostDSTableAdapters.personTableAdapter personAdapter = new OutpostDSTableAdapters.personTableAdapter();
        public static OutpostDSTableAdapters.object_personTableAdapter object_personAdapter = new OutpostDSTableAdapters.object_personTableAdapter();        
        public static OutpostDSTableAdapters.dvrTableAdapter dvrAdapter = new OutpostDSTableAdapters.dvrTableAdapter();
        public static OutpostDSTableAdapters.alertTableAdapter alertAdapter = new OutpostDSTableAdapters.alertTableAdapter();

        static DS()
        {
            try
            {
                objetcAdapter.Fill(outpost._object);
                personAdapter.Fill(outpost.person);
                object_personAdapter.Fill(outpost.object_person);
                dvrAdapter.Fill(outpost.dvr);
                alertAdapter.Fill(outpost.alert);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            
        }
    }
}
